define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Init = ALL.Init;

    var _vm = Init.initVue({
        data : {
            items : null,
            month : curMonth()
        },
        methods: {}
    });

    // 获取当前月份
    function curMonth() {
        var now = new Date(),
            month = now.getMonth();

        if (month < 10) { month = '0' + month; }

        return month;
    }

    METHOD.loading.show();
    METHOD.ajax("index/info").done(function(json){
        METHOD.loading.hide();
        _vm.items = json.data;
    }).fail(function(){
        METHOD.loading.hide();
    });


});

